home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / LIB / GLE / SEGMENT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-12  |  3.9 KB  |  96 lines

  1.  
  2. /*
  3.  * MODULE: segment.h
  4.  *
  5.  * FUNCTION:
  6.  * Contains function prototypes for segment drawing subroutines.
  7.  * These are used only internally, and are not to be exported to
  8.  * the user.
  9.  *
  10.  * HISTORY:
  11.  * Create by Linas Vepstas
  12.  */
  13.  
  14. /* ============================================================ */
  15.  
  16. extern void draw_segment_plain (int ncp,       /* number of contour points */
  17.                            gleDouble front_contour[][3],
  18.                            gleDouble back_contour[][3],
  19.                            int inext, double len);
  20.  
  21. extern void draw_segment_color (int ncp,       /* number of contour points */
  22.                            gleDouble front_contour[][3],
  23.                            gleDouble back_contour[][3],
  24.                            float color_last[3],
  25.                            float color_next[3],
  26.                            int inext, double len);
  27.  
  28. extern void draw_segment_edge_n (int ncp,      /* number of contour points */
  29.                            gleDouble front_contour[][3],
  30.                            gleDouble back_contour[][3],
  31.                            double norm_cont[][3],
  32.                            int inext, double len);
  33.  
  34. extern void draw_segment_c_and_edge_n (int ncp,   
  35.                            gleDouble front_contour[][3],
  36.                            gleDouble back_contour[][3],
  37.                            double norm_cont[][3],
  38.                            float color_last[3],
  39.                            float color_next[3],
  40.                            int inext, double len);
  41.  
  42. extern void draw_segment_facet_n (int ncp,     
  43.                            gleDouble front_contour[][3],
  44.                            gleDouble back_contour[][3],
  45.                            double norm_cont[][3],
  46.                            int inext, double len);
  47.  
  48. extern void draw_segment_c_and_facet_n (int ncp,    
  49.                            gleDouble front_contour[][3],
  50.                            gleDouble back_contour[][3],
  51.                            double norm_cont[][3],
  52.                            float color_last[3],
  53.                            float color_next[3],
  54.                            int inext, double len);
  55.  
  56. /* ============================================================ */
  57.  
  58. extern void draw_binorm_segment_edge_n (int ncp,  
  59.                            double front_contour[][3],
  60.                            double back_contour[][3],
  61.                            double front_norm[][3],
  62.                            double back_norm[][3],
  63.                            int inext, double len);
  64.  
  65. extern void draw_binorm_segment_c_and_edge_n (int ncp,   
  66.                            double front_contour[][3],
  67.                            double back_contour[][3],
  68.                            double front_norm[][3],
  69.                            double back_norm[][3],
  70.                            float color_last[3],
  71.                            float color_next[3],
  72.                            int inext, double len);
  73.  
  74. extern void draw_binorm_segment_facet_n (int ncp, 
  75.                            double front_contour[][3],
  76.                            double back_contour[][3],
  77.                            double front_norm[][3],
  78.                            double back_norm[][3],
  79.                            int inext, double len);
  80.  
  81. extern void draw_binorm_segment_c_and_facet_n (int ncp,    
  82.                            double front_contour[][3],
  83.                            double back_contour[][3],
  84.                            double front_norm[][3],
  85.                            double back_norm[][3],
  86.                            float color_last[3],
  87.                            float color_next[3],
  88.                            int inext, double len);
  89.  
  90. extern void draw_angle_style_back_cap (int ncp,        /* number of contour points */
  91.                            gleDouble bi[3],             /* biscetor */
  92.                            gleDouble point_array[][3]);  /* polyline */
  93.  
  94. /* -------------------------- end of file -------------------------------- */
  95.  
  96.